<form id="pagerForm" method="post" action="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/index/')}">
	<input type="hidden" name="pageNum" value="{$currentPage|default='1'}" />
	<input type="hidden" name="numPerPage" value="{$numPerPage}" />
	<input type="hidden" name="_order" value="{$_REQUEST._order}"/>
	<input type="hidden" name="_sort" value="{$_REQUEST._sort}"/>
</form>

<div class="pageContent" style="border-left:1px #B8D0D6 solid;border-right:1px #B8D0D6 solid">
<div class="panelBar">
		<ul class="toolBar">
			<in name="authGroup_addId" value="$Think.session.rules">
				<li><a class="add" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/add','','')}" target="dialog" mask="true"><span>添加分组</span></a></li>
			</in><in name="authGroup_delId" value="$Think.session.rules">
				<li><a class="delete" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/del','','')}/id/{sid_group}/navTabId/groupList" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			</in><in name="authGroup_editId" value="$Think.session.rules">
				<li><a class="edit" href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/edit','','')}/id/{sid_group}" target="dialog" mask="true"><span>修改</span></a></li>
				<li class="line">line</li>
			</in>
		</ul>
	</div>
	<table class="table" width="99%" layoutH="75">
		<thead>
			<tr>
				<th>序号</th>
				<th orderField="title" <if condition="$Think.REQUEST._order eq 'title'">class="{$Think.REQUEST._sort}"</if>>角色名称</th>
				<th>状态</th>
				<th>拥有权限</th>
				<th width="100">操作</th>
			</tr>
		</thead>
		<tbody>
			<foreach name="group" item="v" key="k">
				<tr target="sid_group" rel="{$v['id']}">
					<td>{$k+1}</td>
					<td>{$v['title']}</td>			
					<td>{$v['status']|getStatus=###}</a></td>
					<td>{$v['rules']|substr=###,1,40}...</td>	
					<td>
						<in name="authGroup_statusId" value="$Think.session.rules">
							{$v['status']|changeStatus=$v['id'],'navTabAjaxDone',MODULE_NAME,CONTROLLER_NAME,'groupList'}
						</in><in name="authGroup_rulesId" value="$Think.session.rules">
							<a href="{:U(MODULE_NAME.'/'.CONTROLLER_NAME.'/rules',array('id'=>$v['id']),'')}" target="dialog" mask="true" title="【{$v['title']}】授权 " width="900" height="500">配置权限</a>
						</in>
					</td>
				</tr>
			</foreach>
		</tbody>
	</table>
	<div class="panelBar">
		<div class="pages">
			<span>显示</span>
			<select class="combox" name="numPerPage" onchange="navTabPageBreak({$Think.config.TMPL_L_DELIM}numPerPage:this.value{$Think.config.TMPL_R_DELIM})">
				<option value="10" <if condition="$numPerPage eq 10">selected</if>>10</option>
				<option value="20" <if condition="$numPerPage eq 20">selected</if>>20</option>
				<option value="50" <if condition="$numPerPage eq 50">selected</if>>50</option>
				<option value="100" <if condition="$numPerPage eq 100">selected</if>>100</option>
			</select>
			<span>条，共{$totalCount}条</span>
		</div>

		<div class="pagination" targetType="navTab" totalCount="{$totalCount}" numPerPage="{$numPerPage}" pageNumShown="{$pageNumShown}" currentPage="{$currentPage}"></div>

	</div>
</div>